	<load file="__STATIC__/tpl/header.html"/>
	
<!-- 载入公共头部文件结束 -->
	<link href="__PUBLIC__/css/detail.css" type="text/css" rel="stylesheet" >
	<div id="map" class='position'>
		<a href="{|U:'Index/index/index',array('lid'=>$data['lid'])}">{$data.lname}</a><span>»</span><a href="{|U:'Index/index/index',array('cid'=>$data['cid'])}">{$data.cname}</a><span>»</span>{$data.shopname}
	</div>
	<div id="content" class='position' >
		<div class='content-left'>
			<div class="goods-intro">
				<div class='goods-title'>
					<h1>{$data.main_title}</h1>
					<h3>{$data.sub_title}</h3>
				</div>
				<div class='deal-intro'>
					<div class='buy-intro'>
						<div class='price'>
							<div class='discount-price'>
								<span>¥</span>{$data.price}
							</div>
							<div class='cost-price'>
								<span class='discount'>{$data.discount}折</span>
								门店价<b>¥{$data.old_price}</b>
							</div>
						</div>
						<div class='deal-buy-cart'>
							<a href="" class='buy'></a>
							<a href="javascript:;" onclick='add_cart({$data.gid})' class='cart'></a>
						</div>
						<div class='purchased'>
							<p class='people'>
								<span>{$data.buy}</span>人已团购
							</p>
							<p class='time'>
								{$data.lifetime}
							</p>
						</div>
						<ul class='refund-intro'>
							<foreach from='$data["server"]'  value="$v">
							<li>
								{$v.img}
								<span class='text'>{$v.name}</span>
							</li>
							</foreach>
						</ul>
					</div>
					<div class='image-intro'>
						<img src="{$data.detail_img}"/>
					</div>
				</div>
				<div class='collect'>
					<a class='collect-link' href=''><i></i>收藏本单</a>
					
					<div class='share'>
						
					</div>
					
				</div>
			</div>
			<div class='detail'>
				<ul class='plot-points'>
					<li class='active'><a href="#shop-site">商家位置</a></li>
					<li><a href="#details">本单详情</a></li>
					<li><a href="#comment">消费评价</a></li>
				</ul>
				<div id="shop-site" class='shop-site'>
					<p class='site-title'>商家位置</p>
					<div class='box'>
						<div class='map' id='allmap'>
							
						</div>
						<div class='info'>
							<h3>{$data.shopname}</h3>
							<dl>
								<dt>地址:</dt>
								<dd>{$data.shopaddress}</dd>
							</dl>
							<dl>
								<dt>地铁:</dt>
								<dd>{$data.metroaddress}</dd>
							</dl>
							<dl>
								<dt>电话:</dt>
								<dd>{$data.shoptel}</dd>
							</dl>
						</div>
					</div>
				</div>
				<div id="details"  class='details'>
					{$data.detail}
				</div>
				<div id="comment" class='comment'>
					<div class='comment-list-title'>
						<span>全部评价</span>
						<a class='order-time' href="">按时间<i></i></a>
					</div>
					<div class='comment-list'>
						<div class='list-con'>
							<div class='con-top'>
								<span class='username'>sdas</span>
								<span class='time'>评价于:<em>2013-08-04</em></span>
							</div>
							<p>
								说是香草拿铁不是很苦，结果根本不是想象中的味道！像速溶冲调！还要另加五元？有此一说吗？银座店环境一般！
							</p>
						</div>
						
					</div>
					<div class='comment-page'>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
						<a href="">1</a>
					</div>
				</div>
			</div>
		
		</div>
		<div class='content-right'>
			<div class='recommend'>
				<h3 class='recommend-title'>
					看过本团购的用户还看了
				</h3>
				<div class='recommend-goods'>
					<a class='goods-image' href="">
						<img alt="图像加载失败.." src="http://p0.meituan.net/200.121/deal/__5738304__3391447.jpg">
					</a>
					<h4>
						<a href="">【五道口】上岛咖啡：双人下午茶套餐，美味齐分享</a>
					</h4>
					<p>
						<strong>¥39.8</strong>
						<span class='cost-price'>门店价<del>144</del></span>
						<span class='num'>
							<span>173</span>
							 人已团购
						</span>
					</p>
				</div>
			</div>
		</div>
		
	</div>
	<div class="c"></div>
	<div id="cover"></div>
	<div id="infoWindow">
	</div>
<js file='__PUBLIC__/js/goods.js' />	
<script>
	var cartSucc = "<div class='colse'><a href='javascript:hideInfoWindow();'></a></div>\
		<ul class='status'>\
		<li class='ico'></li>\
		<li class='msg'>\
			<h3>添加成功!</h3>\
			<p>购物车内共有<span id='total'></span>种商品</p>\
		</li>\
	</ul>\
	<div class='goBtn'>\
		<a href='javascript:hideInfoWindow();'>继续浏览</a>\
		<a href='{|U:'Member/Cart/index'}'>查看购物车</a>\
	</div>";
	var collectSucc = "<div class='colse'><a href='javascript:hideInfoWindow();'></a></div>\
		<ul class='status'>\
		<li class='ico'></li>\
		<li class='msg'>\
			<h3>收藏成功!</h3>\
		</li>\
	</ul>\
	<div class='goBtn'>\
		<a href='javascript:hideInfoWindow();'>继续浏览</a>\
		<a href='{|U:'Member/Index/collect'}'>查看我的收藏</a>\
	</div>";
	var userIsLogin = false;
	<if value="$userIsLogin">
		userIsLogin = true;
	</if>
</script>
<script type="text/javascript">
	var point={$data.shopcoord};
	$(function(){
		// 商家位置
		get_map();
	})

	function get_map()
	{
		// 百度地图API功能
		var map = new BMap.Map("allmap");    // 创建Map实例

		var marker = new BMap.Marker(point);  // 创建标注
		map.addOverlay(marker);              // 将标注添加到地图中


		var top_left_navigation = new BMap.NavigationControl();  //左上角，添加默认缩放平移控件
		map.addControl(top_left_navigation);     
		

		map.centerAndZoom(new BMap.Point(point.lng, point.lat), 25);  // 初始化地图,设置中心点坐标和地图级别
		map.addControl(new BMap.MapTypeControl());   //添加地图类型控件
		map.enableScrollWheelZoom();         //启用滚轮放大缩小

	}


</script>

<!-- 载入公共头部文件开始 --> 
	<load file="__STATIC__/tpl/footer.html"/>
<!-- 载入公共头部文件结束 -->